﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using x.Application.Contracts.User;
using x.Application.Contracts.UserDto;

namespace x.HttpAPI.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class UsersController : ControllerBase
    {
        private readonly IUserService userService;

        public UsersController(IUserService userService)
        {
            this.userService = userService;
        }
        [HttpPost]
        public int UserAdd(UsersDto usersDto)
        {
            return userService.UserAdd(usersDto);
        }
    }
}
